Repository navigation
CI: pin GitHub actions to exact commit SHAs - #6
Merged
Merged
Conversation
A version tag like @v7 can be moved by the action's owner, and the next run would execute the new code with the repo's secrets. Each action is now locked to the commit its v7 tag pointed at today; the trailing comment names the release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Both workflows referenced actions by mutable major tag (
@v7). The tag owner can repoint it, and the next run executes that code withOPENAI_API_KEY(and the tracing keys) in its environment. Flagged by semgrepgithub-actions-mutable-action-tag.Change
Each
uses:now pins the full 40-character commit SHA thatv7resolved to on 2026-12-02, with the release in a trailing comment:3d3c42e5aac5ba805825da76410c181273ba90b16d4fd22b20465ccc0f7354476588e8df7c9ca0e0cf430e030ddbb5b0abf93d22962f4752f3646cd9Files:
continuous-evaluation.yml(3 lines),smoke-tests.yml(2 lines). Same code as today, so behavior is unchanged.Test plan
v7tag via the GitHub API and matched to the release tag🤖 Generated with Claude Code